package com.liuning.graduationdemo.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liuning.graduationdemo.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pumpkin
 * @since 2022-04-25
 */
public interface OrderMapper extends BaseMapper<Order> {

    int updateState(@Param("tradeNo") String tradeNo, @Param("state") int state, @Param("payTime") String payTime);

    Page<Order> findPatientPage(Page<Order> page, @Param("nickname") String nickname,@Param("userId")Integer userId);
}
